package cn.edu.scau.cmi.duzefeng.compositeprog.model.consistent;

import java.util.List;

public abstract class Member {

	public abstract String getName();

	public abstract List<Member> getChildren() throws Exception;

	public abstract void addChild(Member child) throws Exception;

	public abstract void removeChild(Member child) throws Exception;

	@Override
	public String toString() {
		return getName();
	}
}
